(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
"use strict";

loader.define(function (require, exports, module, global) {
  var pageview = {};

  pageview.init = function () {
    var msg;
    var storage;
    storage = bui.storage({
      size: 0
    });
    bui.getPageParams(function (res) {
      msg = res.msg;

      if (msg instanceof Array) {
        storage.clear();

        for (var i in msg) {
          storage.set("member", msg[i], "phone");
        }
      }
    });
    msg = storage.get("member");
    console.log(msg);
    var male = 0,
        female = 0;
    var list = $(".member-main .member-list");
    list.html("");

    for (var i in msg) {
      var li = $('<li class="bui-btn bui-box"></li>');
      var item_img = $('<div class="item-img" style="margin: auto 0.3rem"></div>');
      var tempimg = $('<img style="border-radius: 50%; width: 1.5rem;height: 1.5rem">');
      tempimg.attr("src", msg[i].avatar_url);
      item_img.append(tempimg);
      var item_detail = $('<div class="span1"></div>');
      var item_name = $('<div class="item-name"></div>');
      var item_intro = $('<div class="item-intro"></div>');
      item_name.text(msg[i].name);
      item_intro.text(msg[i].mobile);
      item_detail.append(item_name);
      item_detail.append(item_intro);
      li.append(item_img);
      li.append(item_detail);
      list.append(li);
      if (msg[i].sex == '女') ++female;else ++male;
    } // console.log(male, female);


    $(".pfemale").css("width", female / (female + male) * 100 + '%');
    $(".cursor").css("width", female / (female + male) * 100 + 5 + '%');
    $(".pfemale span").text(female / (female + male) * 100 + '%');
    $(".pmale").text(male / (female + male) * 100 + '%');
  };

  pageview.init();
  return pageview;
});
},{}]},{},[1]);
